const Icon = ({type, width, height}) => {
    if(!width) width = 20
    if(!height) height = 20
    return (
        <img
            src={`https://yjy-teach-oss.oss-cn-beijing.aliyuncs.com/reactbase/ka/${type}.svg`}
            alt="icon" 
            style = {{
                width: width, height: height
            }}
        ></img>
    )
}

export default Icon